<template>
    <div class="des-summary w-100 h-100">
        <el-card class="box-card-table h-100" shadow="never">
            <div slot="header" class="clearfix">
                <span class="fl">总结详情</span>
                <el-button class="fr" @click="goback" style="padding:6px;">返回</el-button>
            </div>
            <div class="h-100">
                <el-form label-width="100px" class="demo-ruleForm">
                    <el-form-item label="总结名称：" prop="bW_Name">
                       <h3>{{info.W_Name}}</h3>
                    </el-form-item>
                    <el-form-item label="详细内容：" prop="bW_Content">
                        <div v-html="info.W_Content"></div>
                    </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import elewarp from '@/components/warp-slot.vue'
// 添加学生
import {addworklist,getworkinfo,editworkinfo} from '@/api/index.js'

export default {
    name: 'addsummary',
    components: {
        elewarp,
        // eleAddStudy
    },
    data() {
        return {
            info:{}
        }
    },
    created(){
        this.workid = this.$route.query.id;
        if(this.workid) {
            this._getworkInfo();
        }
    },
    methods:{
        _getworkInfo(){
            getworkinfo({bWID:this.workid}).then((res) => {
                if(res) {
                    this.info = res;
                    console.log(res)
                }
            })
        },
        onReset(){
            this.$refs.searchform.resetFields()
        },
        // 全选
        goback(){
            this.$router.push({path:'/summary'})
        },
    }
}
</script>
<style lang="less">
.des-summary{
    box-sizing: border-box;
    .line-height{
        line-height: 20px;
    }
    .ql-container.ql-snow{
        min-height: 300px;
    }
    .el-card{
        box-sizing: border-box;
    }
    .el-card__body{
        height:calc(100% - 70px);
        box-sizing: border-box;
    }
    .box-card-table{
        overflow-y: auto;
        box-sizing: border-box;
    }
}
</style>
